package main

import (
	"fmt"
	"github.com/aliyun/alibaba-cloud-sdk-go/services/dysmsapi"
)

func main() {
	client, err := dysmsapi.NewClientWithAccessKey("cn-hangzhou", "LTAI4GGdrx4A2i2xRbTsTpS4", "kWbfeq5CZt4W2BkkDYuBYFToagE9iE")

	request := dysmsapi.CreateSendSmsRequest()
	request.Scheme = "https"

	request.PhoneNumbers = "13719076475"
	request.SignName = "中曼物联"
	request.TemplateCode = "SMS_218615274"
	request.TemplateParam = "{\"code\":\"1111\"}"

	response, err := client.SendSms(request)
	if err != nil {
		fmt.Print(err.Error())
	}
	fmt.Printf("response is %#v\n", response)
}
